<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 100%;
            height: 40px;
        }

        .box i {
            position: relative;
            margin-left: 1000px;
            cursor: pointer;
        }

        li {
            list-style: none;

        }

        a {
            text-decoration: none;
        }

        ul {
            position: absolute;
            top: 15px;
            left: 972px;
        }

        ul li {
            border: 1px solid pink;
            border-top: none;
            padding: 5px 0;
            padding-right: 25px;
        }

        ul li a {
            color: yellowgreen;

        }
    </style>
</head>

<body>

    <div class="box">
        <i>
            个人微博
            <span>></span>
        </i>
        <ul style="display: none;">
            <li><a href="">个人品论</a></li>
            <li><a href="">你好呀的</a></li>
        </ul>
    </div>




    <script>
        var is = document.querySelector('i')
        var ul = document.querySelector('ul')
        var li = document.querySelector('li')
        var a = document.querySelector('a')
        // var flag = 0;
        is.onmouseover = function () {
            ul.style.display = 'block'
        }
        ul.onmouseout = function () {
            ul.style.display = 'none'
        }

    </script>
</body>

</html>